import {Component, signal} from '@angular/core';
import {AuthService} from "../../services";
import {Router} from "@angular/router";

@Component({
  selector: 'app-lostorfinds',
  templateUrl: './lostorfinds.component.html',
  styleUrl: './lostorfinds.component.css'
})
export class LostorfindsComponent {
  constructor(private authService: AuthService,private router: Router) {
  }
  tryUpload(){
    if(this.authService.getIsLoggedIn()){
      this.router.navigate(["/lostorfinds","upload"]);
    }else{
      this.router.navigate(["/lostorfinds","account"]);
    }
  }

}
